#foreach($gc in $gcs)

	#if($!gc.gc_level==1)
	   #set($css1="acc1")
	   #set($css2="acc3")
	   #set($child="child_$!gc.parent.id")
	 #elseif($!gc.gc_level==2)
	   #set($css1="accc1")
	   #set($css2="accc3")
	   #set($child="child_$!gc.parent.parent.id")
	   #set($sty="display:none")
	 #end

<tr id="$!gc.id" parent="$!gc.parent.id" level="$child">
 <td align="center"><input name="ids" id="ids" type="checkbox" value="$!gc.id" /></td>
    <td colspan="2" align="center">
  
 <ul class="addclass">
   <li class="$css1"><img src="$!webPath/resources/style/system/manage/blue/images/jian.jpg" cls="jian" width="14" height="14" onClick="addorsubtract(this,$!gc.id)" style="cursor:pointer;"/></li>
   <li class="ac2"><span class="num"><input type="text" name="$!gc.gc_sequence" id="$!gc.gc_sequence"  value="$!gc.gc_sequence" onblur="ajax_update('$!gc.id','gc_sequence',this)" title="可编辑"/></span></li>
   <li class="$css2"><span class="classies"><input type="text" name="$!gc.gc_name" id="$!gc.gc_name" value="$!gc.gc_name"  onblur="ajax_update('$!gc.id','gc_name',this)" title="可编辑"/></span>
   <span class="newclass" style="$sty"><a href="$!webPath/admin/group_class_add.htm?pid=$!gc.id">新增下级</a></span></li>
       </ul>    </td>
    <td align="left" class="ac8"><a href="$!webPath/admin/group_class_edit.htm?id=$!gc.id&currentPage=$!currentPage">编辑</a>|<a href="javascript:void(0);" onclick="if(confirm('删除分类会同时删除该分类的所有下级，是否继续?'))window.location.href='$!webPath/admin/group_class_del.htm?mulitId=$!gc.id&currentPage=$!currentPage'">删除</a></td>
</tr>
#end
